﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dependency_Injection
{
   public class UserContxt : DbContext

    { //利用依赖注入框架注入连接和SQL选项
        public UserContxt(DbContextOptions<UserContxt> options)
            : base(options) { }

        public DbSet<User> Users { get; set; }
    }
}
